package day11;

public class QueueTest {
    public static void main(String[] args) {
        Queue<String> q = new Queue<>();
        q.enqueue("a");
        q.enqueue("b");
        q.enqueue("c");
        q.enqueue("d");

        for (String str:q){
            System.out.println(str);
        }

        System.out.println("-----------------------------");
        String result = q.dequeue();
        System.out.println("出队列的元素是：" + result);
        System.out.println("剩余的元素个数" + q.size());
    }
}
